package work.jame.blog.service.impl;

import work.jame.blog.pojo.Authority;
import work.jame.blog.mapper.AuthorityMapper;
import work.jame.blog.service.AuthorityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Set;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Jame
 * @since 2023-05-10
 */
@Service
public class AuthorityServiceImpl extends ServiceImpl<AuthorityMapper, Authority> implements AuthorityService {

    @Resource
    private AuthorityMapper authorityMapper;

    @Override
    public Set<String> queryAuthorityCodeByUserId(Long userId) {
        return authorityMapper.queryAuthorityCodeByUserId(userId);
    }
}
